package com.hongdee.crm.cartag.service;

import com.hongdee.crm.cartag.entity.TCrmSurveryQuestion;
import com.hongdee.crm.wo.entity.TCrmWoType;

import java.util.List;
import java.util.Map;

/**
 * Created by 侯念晨 on 2017-05-12.
 */
public interface ITCrmCartagService {
    //page分页查询
    public Map newPage(String value,String start, String limit, String uid) throws Exception;
    //info查询
    public Map info(String id) throws Exception;
    //启用或停用
    public  void update(String id, String status) throws Exception;
    //保存
    public TCrmSurveryQuestion saveOrUpdate(TCrmSurveryQuestion tCrmSurveryQuestion, String uid) throws Exception;
    //左侧资源树
    public List tree() throws Exception;
    /***
     *
     * @param questionId 角色主键
     * @param itemIds 分配的资源主键数据
     * @throws Exception
     */
    public List saveItemTree(String questionId, String[] itemIds) throws Exception;
    //grouppage分页查询
    public Map groupPage(String questionId , String groupCode, String start, String limit) throws Exception;
    //itemPage分页查询
    public Map itempage(String itemId ,String start, String limit) throws Exception;
}
